<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Simple Framework: Framework.Core.MessageManager类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Simple Framework
   &#160;<span id="projectnumber">v0.1.1</span>
   </div>
   <div id="projectbrief">A simple Unity application framework</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_framework_1_1_core_1_1_message_manager.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_framework_1_1_core_1_1_message_manager-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">Framework.Core.MessageManager类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>消息管理，提供程序逻辑监听、抛出事件的机制，负责界面和功能实现的通信。  
 <a href="class_framework_1_1_core_1_1_message_manager.html#details">更多...</a></p>
<div class="dynheader">
类 Framework.Core.MessageManager 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_framework_1_1_core_1_1_message_manager__inherit__graph.png" border="0" usemap="#_framework_8_core_8_message_manager_inherit__map" alt="Inheritance graph"/></div>
<map name="_framework_8_core_8_message_manager_inherit__map" id="_framework_8_core_8_message_manager_inherit__map">
<area shape="rect" id="node2" href="class_framework_1_1_utilities_1_1_singleton.html" title="{Singleton\&lt; MessageManager \&gt;\n|+ Instance\l|+ Initialize()\l}" alt="" coords="5,20,208,97"/>
<area shape="rect" id="node3" href="interface_framework_1_1_core_1_1_i_system_module.html" title="系统组件，由Laucher管理 " alt="" coords="232,5,344,112"/>
</map>
</div>
<div class="dynheader">
Framework.Core.MessageManager 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="class_framework_1_1_core_1_1_message_manager__coll__graph.png" border="0" usemap="#_framework_8_core_8_message_manager_coll__map" alt="Collaboration graph"/></div>
<map name="_framework_8_core_8_message_manager_coll__map" id="_framework_8_core_8_message_manager_coll__map">
<area shape="rect" id="node2" href="class_framework_1_1_utilities_1_1_singleton.html" title="{Singleton\&lt; MessageManager \&gt;\n|+ Instance\l|+ Initialize()\l}" alt="" coords="5,20,208,97"/>
<area shape="rect" id="node3" href="interface_framework_1_1_core_1_1_i_system_module.html" title="系统组件，由Laucher管理 " alt="" coords="232,5,344,112"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:adf129f27dd00c22a64ad8c1ec361d11d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_framework_1_1_core_1_1_message_queue.html">MessageQueue</a>&lt; TEventType &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_framework_1_1_core_1_1_message_manager.html#adf129f27dd00c22a64ad8c1ec361d11d">Get&lt; TEventType &gt;</a> (bool immediate=true)</td></tr>
<tr class="memdesc:adf129f27dd00c22a64ad8c1ec361d11d"><td class="mdescLeft">&#160;</td><td class="mdescRight">获得一个消息队列。  <a href="#adf129f27dd00c22a64ad8c1ec361d11d">更多...</a><br /></td></tr>
<tr class="separator:adf129f27dd00c22a64ad8c1ec361d11d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52948fc0c99ae84dcf721ae4a570405d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_framework_1_1_core_1_1_message_manager.html#a52948fc0c99ae84dcf721ae4a570405d">Dispose&lt; TEventType &gt;</a> ()</td></tr>
<tr class="memdesc:a52948fc0c99ae84dcf721ae4a570405d"><td class="mdescLeft">&#160;</td><td class="mdescRight">释放指定消息类型的消息队列。  <a href="#a52948fc0c99ae84dcf721ae4a570405d">更多...</a><br /></td></tr>
<tr class="separator:a52948fc0c99ae84dcf721ae4a570405d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a272fa9d9356705b0ce65f41ab6d5ddcc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_framework_1_1_core_1_1_message_manager.html#a272fa9d9356705b0ce65f41ab6d5ddcc">Dispose</a> (<a class="el" href="interface_framework_1_1_core_1_1_i_message_queue.html">IMessageQueue</a> mq)</td></tr>
<tr class="memdesc:a272fa9d9356705b0ce65f41ab6d5ddcc"><td class="mdescLeft">&#160;</td><td class="mdescRight">释放指定消息队列。  <a href="#a272fa9d9356705b0ce65f41ab6d5ddcc">更多...</a><br /></td></tr>
<tr class="separator:a272fa9d9356705b0ce65f41ab6d5ddcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4283355f4f83ba41363ddc7cde7c5236"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_framework_1_1_core_1_1_message_manager.html#a4283355f4f83ba41363ddc7cde7c5236">Initialize</a> ()</td></tr>
<tr class="memdesc:a4283355f4f83ba41363ddc7cde7c5236"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化函数。  <a href="#a4283355f4f83ba41363ddc7cde7c5236">更多...</a><br /></td></tr>
<tr class="separator:a4283355f4f83ba41363ddc7cde7c5236"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8016cdefff11ec8ea3351d2ad33738da"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_framework_1_1_core_1_1_message_manager.html#a8016cdefff11ec8ea3351d2ad33738da">Update</a> (float deltaTime)</td></tr>
<tr class="memdesc:a8016cdefff11ec8ea3351d2ad33738da"><td class="mdescLeft">&#160;</td><td class="mdescRight">推动所有消息队列。  <a href="#a8016cdefff11ec8ea3351d2ad33738da">更多...</a><br /></td></tr>
<tr class="separator:a8016cdefff11ec8ea3351d2ad33738da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ac869e3e71bb0191fcd91c2f3a3241b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_framework_1_1_core_1_1_message_manager.html#a8ac869e3e71bb0191fcd91c2f3a3241b">Dispose</a> ()</td></tr>
<tr class="memdesc:a8ac869e3e71bb0191fcd91c2f3a3241b"><td class="mdescLeft">&#160;</td><td class="mdescRight">释放所有消息队列。  <a href="#a8ac869e3e71bb0191fcd91c2f3a3241b">更多...</a><br /></td></tr>
<tr class="separator:a8ac869e3e71bb0191fcd91c2f3a3241b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header properties_class_framework_1_1_utilities_1_1_singleton"><td colspan="2" onclick="javascript:toggleInherit('properties_class_framework_1_1_utilities_1_1_singleton')"><img src="closed.png" alt="-"/>&#160;属性 继承自 <a class="el" href="class_framework_1_1_utilities_1_1_singleton.html">Framework.Utilities.Singleton&lt; MessageManager &gt;</a></td></tr>
<tr class="memitem:a3e8f42f51188ce789d8eceba2717356d inherit properties_class_framework_1_1_utilities_1_1_singleton"><td class="memItemLeft" align="right" valign="top">static T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_framework_1_1_utilities_1_1_singleton.html#a3e8f42f51188ce789d8eceba2717356d">Instance</a><code> [get]</code></td></tr>
<tr class="memdesc:a3e8f42f51188ce789d8eceba2717356d inherit properties_class_framework_1_1_utilities_1_1_singleton"><td class="mdescLeft">&#160;</td><td class="mdescRight">实例  <a href="class_framework_1_1_utilities_1_1_singleton.html#a3e8f42f51188ce789d8eceba2717356d">更多...</a><br /></td></tr>
<tr class="separator:a3e8f42f51188ce789d8eceba2717356d inherit properties_class_framework_1_1_utilities_1_1_singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>消息管理，提供程序逻辑监听、抛出事件的机制，负责界面和功能实现的通信。 </p>

<p class="definition">在文件 <a class="el" href="_message_manager_8cs_source.html">MessageManager.cs</a> 第 <a class="el" href="_message_manager_8cs_source.html#l00012">12</a> 行定义.</p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a272fa9d9356705b0ce65f41ab6d5ddcc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a272fa9d9356705b0ce65f41ab6d5ddcc">&#9670;&nbsp;</a></span>Dispose() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Framework.Core.MessageManager.Dispose </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="interface_framework_1_1_core_1_1_i_message_queue.html">IMessageQueue</a>&#160;</td>
          <td class="paramname"><em>mq</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>释放指定消息队列。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mq</td><td>队列对象</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_message_manager_8cs_source.html">MessageManager.cs</a> 第 <a class="el" href="_message_manager_8cs_source.html#l00068">68</a> 行定义.</p>

</div>
</div>
<a id="a8ac869e3e71bb0191fcd91c2f3a3241b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ac869e3e71bb0191fcd91c2f3a3241b">&#9670;&nbsp;</a></span>Dispose() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Framework.Core.MessageManager.Dispose </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>释放所有消息队列。 </p>

<p>实现了 <a class="el" href="interface_framework_1_1_core_1_1_i_system_module.html#ad65409c9d10d38719d40860cb9958e35">Framework.Core.ISystemModule</a>.</p>

<p class="definition">在文件 <a class="el" href="_message_manager_8cs_source.html">MessageManager.cs</a> 第 <a class="el" href="_message_manager_8cs_source.html#l00113">113</a> 行定义.</p>

</div>
</div>
<a id="a52948fc0c99ae84dcf721ae4a570405d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52948fc0c99ae84dcf721ae4a570405d">&#9670;&nbsp;</a></span>Dispose< TEventType >()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_framework_1_1_core_1_1_message_manager.html#a272fa9d9356705b0ce65f41ab6d5ddcc">Framework.Core.MessageManager.Dispose</a>&lt; TEventType &gt; </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>释放指定消息类型的消息队列。 </p>
<dl class="tparams"><dt>模板参数</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">TEventType</td><td>消息类型。</td></tr>
  </table>
  </dd>
</dl>
<div class="typeconstraint">
<dl><dt><b>类型限制</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>TEventType</em></td><td>&#160;:</td><td valign="top"><em>struct</em></td><td>&#160;</td></tr>
</table>
</dd>
</dl>
</div>

<p class="definition">在文件 <a class="el" href="_message_manager_8cs_source.html">MessageManager.cs</a> 第 <a class="el" href="_message_manager_8cs_source.html#l00053">53</a> 行定义.</p>

</div>
</div>
<a id="adf129f27dd00c22a64ad8c1ec361d11d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf129f27dd00c22a64ad8c1ec361d11d">&#9670;&nbsp;</a></span>Get< TEventType >()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_framework_1_1_core_1_1_message_queue.html">MessageQueue</a>&lt;TEventType&gt; Framework.Core.MessageManager.Get&lt; TEventType &gt; </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>immediate</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获得一个消息队列。 </p>
<dl class="tparams"><dt>模板参数</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">TEventType</td><td>事件类型的枚举。</td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">immediate</td><td>接受到消息时立即执行，不进入队列。若为false，则消息在下一帧开始逐个执行。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>消息队列。</dd></dl>
<div class="typeconstraint">
<dl><dt><b>类型限制</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>TEventType</em></td><td>&#160;:</td><td valign="top"><em>struct</em></td><td>&#160;</td></tr>
</table>
</dd>
</dl>
</div>

<p class="definition">在文件 <a class="el" href="_message_manager_8cs_source.html">MessageManager.cs</a> 第 <a class="el" href="_message_manager_8cs_source.html#l00029">29</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_framework_1_1_core_1_1_message_manager_adf129f27dd00c22a64ad8c1ec361d11d_cgraph.png" border="0" usemap="#class_framework_1_1_core_1_1_message_manager_adf129f27dd00c22a64ad8c1ec361d11d_cgraph" alt=""/></div>
<map name="class_framework_1_1_core_1_1_message_manager_adf129f27dd00c22a64ad8c1ec361d11d_cgraph" id="class_framework_1_1_core_1_1_message_manager_adf129f27dd00c22a64ad8c1ec361d11d_cgraph">
<area shape="rect" id="node2" href="class_framework_1_1_core_1_1_message_queue.html#a021a5bf68a0fa77e6edcfc1a27511b49" title="初始化消息管理器。 " alt="" coords="281,5,497,47"/>
</map>
</div>

</div>
</div>
<a id="a4283355f4f83ba41363ddc7cde7c5236"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4283355f4f83ba41363ddc7cde7c5236">&#9670;&nbsp;</a></span>Initialize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">override void Framework.Core.MessageManager.Initialize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化函数。 </p>

<p>实现了 <a class="el" href="interface_framework_1_1_core_1_1_i_system_module.html#aaa6d30287a78a6e02caf982198285641">Framework.Core.ISystemModule</a>.</p>

<p class="definition">在文件 <a class="el" href="_message_manager_8cs_source.html">MessageManager.cs</a> 第 <a class="el" href="_message_manager_8cs_source.html#l00093">93</a> 行定义.</p>

</div>
</div>
<a id="a8016cdefff11ec8ea3351d2ad33738da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8016cdefff11ec8ea3351d2ad33738da">&#9670;&nbsp;</a></span>Update()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Framework.Core.MessageManager.Update </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>deltaTime</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>推动所有消息队列。 </p>

<p>实现了 <a class="el" href="interface_framework_1_1_core_1_1_i_system_module.html#aa41c7ff4d5e211c4b7d7517b617f0e4a">Framework.Core.ISystemModule</a>.</p>

<p class="definition">在文件 <a class="el" href="_message_manager_8cs_source.html">MessageManager.cs</a> 第 <a class="el" href="_message_manager_8cs_source.html#l00102">102</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>Assets/Scripts/Core/<a class="el" href="_message_manager_8cs_source.html">MessageManager.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_framework.html">Framework</a></li><li class="navelem"><a class="el" href="namespace_framework_1_1_core.html">Core</a></li><li class="navelem"><a class="el" href="class_framework_1_1_core_1_1_message_manager.html">MessageManager</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
